<!-- 
  * Copyright (c) 2022 iSoftStone Information Technology (Group) Co.,Ltd.
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *     http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
 -->
<template>
	<view class="shareImgBox">
		<view class="btnClose" @click="closeShare">
			<u-icon width="80rpx" height="80rpx" size="80rpx" color="#FFF" name="close-circle"></u-icon>
		</view>
		<u-image :showLoading="true" :src="data.imgUrl" mode="widthFix" width="100%" height="auto" radius="20rpx"></u-image>
		<u-button open-type="share" shape="circle" type="warning" :customStyle="{'margin':'40rpx 0'}" text="分享" @click="sharePage()"></u-button>
	</view>
</template>
<script>
	export default {
		props: {
			data: Object,
			type: String
		},
		data() {
			return {
				src:this.$store.state.baseurl + 'static/image/bg7.jpg',
			}
		},
		computed: {

		},
		onShow() {
			
		},
		methods: {
			closeShare(){
				this.$emit("change",false)
			},
			sharePage(){
				this.$emit("sharePage",this.data.imgUrl)
			}

		}
	}
</script>
<style>

</style>
<style lang="scss" scoped>
	
	.shareImgBox {
		position: fixed;
		width: 90%;
		left: 5%;
		top:120rpx;
		z-index: 99;
		.btnClose{
			position: absolute;
			top: 10rpx;
			right: 10rpx;
			z-index: 99;
		}
	}
</style>
<style lang="scss">

</style>
